package com.example.courseorder.repository.impl;


import com.example.courseorder.domain.Course;
import com.example.courseorder.repository.CourseRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

@Repository
public class CourseDao {
    @Autowired
    @Qualifier("courseRepository")
    private CourseRepository courseRepository;
    public Iterable<Course> findAll() {
        return courseRepository.findAll();
    }

}
